package com.mg.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mg.message.dto.ResponMessageOrder;
import com.mg.message.entity.MessageOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageOrderMapper extends BaseMapper<MessageOrder> {
    //（无限制）查询所用用户和消费次数
    List<ResponMessageOrder> selectOrderCount();

    //（时间限制）查询相关用户和消费次数
    List<ResponMessageOrder> selectOrderCountWithLimit(@Param("startTime") String startTime, @Param("endTime") String endTime);
}